package com.wuchao.spring.iocparo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author wuchao66
 * @Date 2023/9/25 15:01
 * @PackageName:com.wuchao.spring.iocparo
 * @ClassName: Tshow
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
@Service//默认骆驼发
public class Tshow {
//    public Show getShow() {
//        return show;
//    }
//
//    public void setShow(Show show) {
//        this.show = show;
//    }

//    @Autowired//通过类型注入
//    @Qualifier("show")
    @Resource//根据名字入参
    private Show show;//容器接管自动注入--ioc //自动注入

    public void hi(){
        show.say();
    }
}
